<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<center>
    <h1>你的马没了</h1>
    <a th:href="@{/goadd}">添加</a>
<table border="1">
    <tr>
        <th>ID</th>
        <th>姓名</th>
        <th>年龄</th>
        <th>性别</th>
        <th>生日</th>
        <th>年龄</th>
        <th>操作</th>
    </tr>
    <tr th:each="u : ${list}">
        <td th:text="${u.id}"></td>
        <td th:text="${u.nam}"></td>
            <td th:text="${u.pwd}"></td>
     <td><span th:if="${u.sex}=='1'">
         男
     </span>
         <span th:if="${u.sex}=='2'">
         女
     </span>
     </td>
        <td th:text="${#dates.format(u.birth,'yyyy-MM-dd')}">
     </td>
        <td th:text="${u.age}"></td>
        <td>
            <a th:href="@{/findByid(id=${u.id})}">修改</a>
            <a th:href="@{/delete(id=${u.id})}">删除</a>
        </td>
    </tr>


</table>


</center>
</body>
</html>